home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODFDev / ODF / OS / FWGraphx / FWAIconS.cpp < prev    next >
Encoding:
Text File  |  1996-09-17  |  1.3 KB  |  39 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                FWAIconS.cpp
  4. //    Release Version:    $ ODF 2 $
  5. //
  6. //    Copyright:    (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  7. //
  8. //========================================================================================
  9. // We separate the archiving functions into their own translation units in order to
  10. // enable dead-stripping.
  11.  
  12. #include "FWOS.hpp"
  13.  
  14. #ifndef FWICONSH_H
  15. #include "FWIconSh.h"
  16. #endif
  17.  
  18. #ifdef FW_BUILD_MAC
  19. #pragma segment FWGraphx_IconShape
  20. #endif
  21.  
  22. //========================================================================================
  23. //    class FW_CIconShape
  24. //========================================================================================
  25.  
  26. const FW_ClassTypeConstant FW_LIconShape = FW_TYPE_CONSTANT('i','c','s','h');
  27. FW_REGISTER_ARCHIVABLE_CLASS(FW_LIconShape, FW_CIconShape, FW_CIconShape::Read, 0, 0, FW_CShape::Write)
  28.  
  29. //----------------------------------------------------------------------------------------
  30. //    FW_CIconShape::Read
  31. //----------------------------------------------------------------------------------------
  32.  
  33. void* FW_CIconShape::Read(FW_CReadableStream& stream, FW_ClassTypeConstant type)
  34. {
  35. FW_UNUSED(type);
  36.     return FW_NEW(FW_CIconShape, (stream));
  37. }
  38.  
  39.